package model

import (
	"gorm.io/gorm"
)

type AdminRole struct {
	gorm.Model
	Uid    uint   `json:"uid" gorm:"not null;default:0;"`
	Name   string `json:"name" gorm:"not null;"`
	Enable int8   `json:"enable" gorm:"not null;default:1;comment: 0=未知 1=启用 2=禁用"`
	Memo   string `json:"memo" gorm:"not null;default:'';"`
}

type AdminRoleMenu struct {
	ID  uint `json:"ID" gorm:"primaryKey"`
	Rid uint `json:"rid" gorm:"not null"`
	Mid uint `json:"mid" gorm:"not null"`
	Bid uint `json:"bid" gorm:"not null;"`
}
